Throw the right exception from DataChannel.send() when the message is too big. Differential Revision: https://phabricator.services.mozilla.com/D62850 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1615481 gecko-commit: b980bb5c8d8c81404d8d2b1f4d3fa4937ea60ee3 gecko-integration-branch: autoland gecko-reviewers: jib
diff --git a/webrtc/RTCDataChannel-send.html b/webrtc/RTCDataChannel-send.html index 406937f..3a4c0f5 100644 --- a/webrtc/RTCDataChannel-send.html +++ b/webrtc/RTCDataChannel-send.html
@@ -313,6 +313,6 @@ // "send" method step 4: // If the byte size of "data" exceeds the value of maxMessageSize, throw // a TypeError. - assert_throws_dom('TypeError', () => channel1.send(message)); + assert_throws_js(TypeError, () => channel1.send(message)); }, 'Calling send() up to max size should succeed, above max size should fail'); </script>